package com.southminority.ethnic.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.southminority.ethnic.column.ExcelColumn;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 课程资料表
 * @TableName course_material
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="course_material")
@Data
public class CourseMaterial extends BasePoJo implements Serializable {
    /**
     * 课程资料ID
     */
    @Schema(description = "课程资料ID")
    @TableId(type = IdType.AUTO)
    @ExcelColumn(name = "课程资料ID", columnWidth = 10, value = "1",hidden = true)
    private Long id;

    /**
     * 课程ID
     */
    @Schema(description = "课程ID")
    @ExcelColumn(name = "课程ID", columnWidth = 10, value = "1",nonNull = true)
    private Long courseId;

    /**
     * 资料文件名
     */
    @Schema(description = "资料文件名")
    @ExcelColumn(name = "资料文件名", columnWidth = 20, value = "1",nonNull = true)
    private String materialName;

    /**
     * 资料下载地址
     */
    @Schema(description = "资料下载地址")
    @ExcelColumn(name = "资料下载地址", columnWidth = 40, value = "https://www.baidu.com",nonNull = true)
    private String downloadUrl;

    /**
     * 资料下载数量
     */
    @Schema(description = "资料下载数量")
    @ExcelColumn(name = "资料下载数量", columnWidth = 10, value = "1")
    private Integer downloadCount;
} 